package cn.lvji.springboot.learn3.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 景区
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ScenicVO {
    /**
     * Id
     */
    private Long id;
    /**
     * 景区名称
     */
    @NotBlank
    private String name;
    /**
     * 状态：1正常，2下线
     */
    @Range(min = 1, max = 2)
    private int status;
    /**
     * 简介
     */
    private String brief;
    /**
     * 地址
     */
    @Size(min = 50)
    private String address;
    /**
     * 图片
     */
    private String pictureUrl;

}

